home *** CD-ROM | disk | FTP | other *** search
/ Practical Web Pages 2004 September / PracticalWebPages-WPG13-09-2004-Coverdisc.iso / pc / Software / Toolkit / Sothink SWF Quicker 1.5 / data1.cab / Public_Files / Classes / TextFormat.as < prev    next >
Encoding:
Text File  |  2004-06-14  |  2.8 KB  |  22 lines

  1. class TextFormat
  2. {
  3.     var align                                                            // A string Indicating the alignment of the paragraph. If "left", the paragraph is left-aligned. If "center", the paragraph is centered. If "right", the paragraph is right-aligned. The default value is "null" which indicates that the property is undefined.
  4.     var blockIndent                                                      // Indicates the block indentation in points. Block indentation is applied to an entire block of text.
  5.     var bold                                                             // Indicates whether the text is boldface.
  6.     var bullet                                                           // a Boolean value that indicates that the text is part of a bulleted list. In a bulleted list, each paragraph of text is indented. To the left of the first line of each paragraph, a bullet symbol is displayed. The default value is null.
  7.     var color                                                            // Indicates the color of text.
  8.     var font                                                             // The name of the font for text in this text format.
  9.     var indent                                                           // Indicates the indentation from the left margin to the first character in the paragraph.
  10.     var italic                                                           // Indicates whether text in this text format is italicized.
  11.     var leading                                                          // The amount of vertical space between lines.
  12.     var leftMargin                                                       // The left margin of the paragraph, in points.
  13.     var rightMargin                                                      // The right margin of the paragraph, in points.
  14.     var size                                                             // The size of text in this text format, in points.
  15.     var tabStops                                                         // Specifies custom tab stops as an array of non-negative integers. Each tab stop is specified in points. If custom tab stops are not specified (null), the default tab stop is 4 (average character width).
  16.     var target                                                           // Indicates the target window where the hyperlink is displayed.
  17.     var underline                                                        // Indicates whether the text is underlined (true) or not (false) in this text format.
  18.     var url                                                              // Indicates the URL that text in this text format links to.
  19.  
  20.     function getTextExtent(text, Width)                                  // Returns text measurement information: ascent, descent, width, height, textFieldHeight, and textFieldWidth.
  21. }
  22.